            	<div id="block-center" style="position: relative;">
                	<div class="header-orange">
                    	<div class="icon"></div>
                        <div class="title">BOOKS</div>
                        <div class="clr"></div>
                     </div>
                     <div class="block-content-1">
                     	<div id="products">
                            <?php
                                if(count($this->Items) > 0){
                                    foreach ($this->Items as $key => $val) {
                                    $name = $val['name'];
                                    $linkImg = FILES_URL . '/books/small/' . $val['picture'];
                                    $picture = '<img src="' . $linkImg . '" />';
                                    $price = $val['price'];
                                    $selloff = $val['selloff'];
                                    if($selloff <= 0){
                                        $price = '<span class="price-1" style="font-weight: bold; color:red;">$' . $price . '</span>';
                                    }else{
                                        $price = '<span class="price-1" style="text-decoration: line-through;">$' . $price . '</span>'
                                                 . '<span class="saleoff" style="font-weight: bold; color:red;"> $' . $selloff . '</span>';
                                    }
                                    
                                    $filter = new Zend_Filter();
                                    $multiFilter = $filter->addFilter(new Zend_Filter_StringToLower(), array('encoding'=>'UTF-8'))
							  ->addFilter(new Zend_Filter_StringTrim())
							  ->addFilter(new Zend_Filter_Alnum(true))
							  ->addFilter(new Zend_Filter_PregReplace(array('match'=>'#\s+#', 'replace'=>'-')))
							  ->addFilter(new Zend_Filter_Word_SeparatorToDash())
							  ->addFilter(new Zendvn_Filter_RemoveCircumflex());
                                    
                                    $urlOptions = array('module'=>'shopping', 'controller'=>'index', 'action'=>'detail', 
                                                        'cid'=>$val['cat_id'], 'tcat'=>$multiFilter->filter($val['category_name']),
                                                        'id'=>$val['id'], 'title'=>$multiFilter->filter($val['name']));
                                    $linkDetail = $this->url($urlOptions, 'shop-detail');
                                    $linkCart = $this->baseUrl('shopping/index/add-item/id/'. $val['id'] );
                                    
                                
                            ?>
                        	<div id="item">
                                    <div class="img">
                                        <a href="<?php echo $linkDetail;?>"  class="lightbox" rel="flowers" title="jQuery Lightbox Sample Image">
                                            <?php echo $picture;?>
                                        </a>
                                    </div>
                                    <div class="title">
                                            <?php echo $name;?>
                                    </div>
                                    <div class="price">
                                        <?php echo $price;?>
                                    </div>
                                    <div class="add-to-cart">
                                        <span>
                                            <a href="<?php echo $linkCart;?>">
                                                <img src="<?php echo $this->imgUrl; ?>/add-cart-icon.png" />
                                            </a>
                                        </span> 
                                        <span><a href="<?php echo $linkDetail;?>">Detail</a></span>
                                    </div>
                         	</div>
                            <?php 
                                    }
                                } 
                            ?>
                            <div class="clr" style="margin-bottom: 15px;"></div>
                        </div>
                     </div>
                </div>

    <?php
        $currentUrl	= $this->baseUrl($this->currentController . '/' 
                                            . $this->arrParam['action'] . '/cid/'
                                            . $this->arrParam['cid'] . '/name/'
                                            . $this->arrParam['name']);
        echo $this->paginationControl($this->panigator,'Sliding','pagination.phtml',array('currentUrl'=>$currentUrl));
    ?>